//
//  NewsTableViewCell.h
//  Code
//
//  Created by apple on 2017/10/28.
//  Copyright © 2017年 HD. All rights reserved.
//

#import "newsModel.h"
#import "YYModel.h"

@implementation newsModel

- (void)setAddtime:(NSString *)addtime{
    NSTimeInterval time=[addtime doubleValue];
    NSDate *detailDate=[NSDate dateWithTimeIntervalSince1970:time];
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; 
    //设定时间格式
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    NSString *currentDateStr = [dateFormatter stringFromDate: detailDate];
    _addtime = currentDateStr;
}


//重写description方法，返回对象的描述信息

-(NSString *)description {
    return [self yy_modelDescription];
    
}



@end
